home *** CD-ROM | disk | FTP | other *** search
- 'QuickBASIC 4.5 version of Print Screen BIOS call'
- '
- 'NOTE: The Quick Library QB.QLB must be loaded
- 'with QuickBASIC, and program must be compiled
- 'with QB.LIB to use CALL INTERRUPT.
-
- DIM status AS INTEGER
- DIM inregs%(7), outregs%(7)
-
-
- 'Execute BIOS interrupt #5, no register
- ' parameters needed
-
- CALL interrupt(&H5, inregs%(), outregs%())
-
-
- 'get Print Screen status byte at 0050:0000
-
- DEF SEG = &H50 'point to segment 0050
- status = PEEK(0) 'and get byte at offset 0
-
- IF status = 1 THEN 'Print Screen interrupt in use
- PRINT "Screen printing in progress."
-
- ELSEIF status > 1 THEN 'Print Screen error
- PRINT "Error - could not print the screen."
-
- END IF 'default to status=0,
- ' Print Screen successful
-
- DEF SEG 'point back to BASIC data area
-
- END
-
-